
import request from '@/utils/request'
// 类型删除
export function allDel(query) {
  return request({
    url: '/customer/customer/recycle/grade',
    method: 'get',
    params: query
  })
}
// 拨打电话
export function callNumber(query) {
  return request({
    url: '/rytx/outbound',
    method: 'get',
    params: query
  })
}
// 获取列表
export function getList(data) {
  return request({
    url: '/customer/customer/list',
    method: 'get',
    params: data
  })
}
// 获取日志列表
export function getDataMore(data) {
  return request({
    url: '/customer/log/list',
    method: 'get',
    params: data
  })
}
// 日志新增
export function submitFormadd(data) {
  return request({
    url: '/customer/log',
    method: 'post',
    data: data
  })
}
export function addRecord(data) {
  return request({
    url: '/customer/record',
    method: 'post',
    data: data
  })
}
export function userList(data) {
  return request({
    url: '/system/user/user/list',
    method: 'get',
    params: data
  })
}
//execl导出数量
export function execlSubmitForm(data) {
  return request({
    url: '/customer/selectPages',
    method: 'post',
    data: data
  })
}
// 根据id删除预约
export function handleOrderListDelete(id) {
  return request({
    url: '/customer/remind/' + id,
    method: 'delete'
  })
}
// 获取预约列表
export function getRemains(data) {
  return request({
    url: '/customer/remind/list',
    method: 'get',
    params: data
  })
}
// 添加或者更新预约
export function orderSubmitForm(data) {
  return request({
    url: '/customer/remind',
    method: 'post',
    data: data
  })
}
// 单个，多个删除
export function deleteData(id) {
  return request({
    url: '/customer/customer/recycle/' + id,
    method: 'get'
  })
}
// 获取数据(资质)
export function getData(data) {
  return request({
    url: '/customer/customer/list',
    method: 'get',
    params: data
  })
}
export function getData00(data) {
  return request({
    url: '/customer/customer/list',
    method: 'get',
    params: data
  })
}

export function getData00N(data) {
  return request({
    url: '/trade/customer/customer/list',
    method: 'get',
    params: data
  })
}
// 导入客户数据(外贸)
export function uploadFile(state, label, data) {
  return request({
    url: '/customer/customer/batchImport?state=' + state + '&label=' + label,
    method: 'post',
    data: data
  })
}
// 导入客户数据(内贸)
export function uploadFile1(state, label, data) {
  return request({
    url: '/customer/customer/domestic/batchImport?state=' + state + '&label=' + label,
    method: 'post',
    data: data
  })
}
// 新增
export function submitAptitudeForm(data) {
  return request({
    url: '/customer/customer',
    method: 'post',
    data: data
  })
}
// 获取
export function submitAptitudeForm2(id) {
  return request({
    url: '/customer/customer/' + id,
    method: 'get',
  })
}
// 获取拜访记录
export function getVisitList(id) {
  return request({
    url: `/customer/visit/list/` + id,
    method: 'GET',
  })
}
// 新增拜访记录
export function addVisit(data) {
  return request({
    url: '/customer/visit',
    method: 'POST',
    data
  })
}
// 更新
export function update(data) {
  return request({
    url: '/customer/customer',
    method: 'put',
    data: data
  })
}
downLoadPan
// 导出模板外贸
export function downLoadPan(query) {
  return request({
    url: '/customer/customer/outer/importTemplate',
    method: 'get',
    params: query
  })
}
// 导出模板内贸
export function downLoadPan1(query) {
  return request({
    url: '/customer/customer/domestic/importTemplate',
    method: 'get',
    params: query
  })
}
export function getLabels(data) {
  return request({
    url: '/customer/lablemanager/list',
    method: 'get',
    params: data
  })
}
// 获取国家列表
export function getCountryList() {
  return request({
    url: 'system/country/list',
    method: 'get',
  })
}

// 导出资源
export function exportNei(data) {
  return request({
    url: 'customer/customer/domestic/export',
    method: 'get',
    params: data
  })
}
export function exportWai(data) {
  return request({
    url: 'customer/customer/export',
    method: 'get',
    params: data
  })
}

// 邮箱去重
export function validateEmail(data) {
  return request({
    url: '/customer/customer/select/email',
    method: 'get',
    params: data
  })
}

// 修改记录
export function record(data) {
  return request({
    url: '/customer/customer/modify/list',
    method: 'get',
    params: data
  })
}



// 类型删除
export function allDelN(query) {
  return request({
    url: '/trade/customer/customer/recycle/grade',
    method: 'get',
    params: query
  })
}
// 拨打电话
export function callNumberN(query) {
  return request({
    url: '/trade/rytx/outbound',
    method: 'get',
    params: query
  })
}
// 获取列表
export function getListN(data) {
  return request({
    url: '/trade/customer/customer/list',
    method: 'get',
    params: data
  })
}
// 获取日志列表
export function getDataMoreN(data) {
  return request({
    url: '/trade/customer/log/list',
    method: 'get',
    params: data
  })
}
// 日志新增
export function submitFormaddN(data) {
  return request({
    url: '/trade/customer/log',
    method: 'post',
    data: data
  })
}
export function addRecordN(data) {
  return request({
    url: '/trade/customer/record',
    method: 'post',
    data: data
  })
}
export function userListN(data) {
  return request({
    url: '/system/user/user/list',
    method: 'get',
    params: data
  })
}
//execl导出数量
export function execlSubmitFormN(data) {
  return request({
    url: '/trade/customer/selectPages',
    method: 'post',
    data: data
  })
}
// 根据id删除预约
export function handleOrderListDeleteN(id) {
  return request({
    url: '/trade/customer/remind/' + id,
    method: 'delete'
  })
}
// 获取预约列表
export function getRemainsN(data) {
  return request({
    url: '/trade/customer/remind/list',
    method: 'get',
    params: data
  })
}
// 添加或者更新预约
export function orderSubmitFormN(data) {
  return request({
    url: '/trade/customer/remind',
    method: 'post',
    data: data
  })
}
// 单个，多个删除
export function deleteDataN(id) {
  return request({
    url: '/trade/customer/customer/recycle/' + id,
    method: 'get'
  })
}
// 获取数据(资质)
export function getDataN(data) {
  return request({
    url: '/trade/customer/customer/list',
    method: 'get',
    params: data
  })
}

// 导入客户数据(内贸)
export function uploadFile1N(state, label, data) {
  return request({
    url: '/trade/customer/customer/domestic/batchImport?state=' + state + '&label=' + label,
    method: 'post',
    data: data
  })
}
// 新增
export function submitAptitudeFormN(data) {
  return request({
    url: '/trade/customer/customer',
    method: 'post',
    data: data
  })
}
// 获取
export function submitAptitudeForm2N(id) {
  return request({
    url: '/trade/customer/customer/' + id,
    method: 'get',
  })
}
// 更新
export function updateN(data) {
  return request({
    url: '/trade/customer/customer',
    method: 'put',
    data: data
  })
}
downLoadPan
// 导出模板外贸
export function downLoadPanN(query) {
  return request({
    url: '/trade/customer/customer/outer/importTemplate',
    method: 'get',
    params: query
  })
}
// 导出模板内贸
export function downLoadPan1N(query) {
  return request({
    url: '/trade/customer/customer/domestic/importTemplate',
    method: 'get',
    params: query
  })
}
export function getLabelsN(data) {
  return request({
    url: '/trade/customer/lablemanager/list',
    method: 'get',
    params: data
  })
}
// 获取国家列表
export function getCountryListN() {
  return request({
    url: 'system/country/list',
    method: 'get',
  })
}

// 导出资源
export function exportNeiN(data) {
  return request({
    url: '/trade/customer/customer/domestic/export',
    method: 'get',
    params: data
  })
}
export function exportWaiN(data) {
  return request({
    url: '/trade/customer/customer/export',
    method: 'get',
    params: data
  })
}

// 邮箱去重
export function validateEmailN(data) {
  return request({
    url: '/trade/customer/customer/select/email',
    method: 'get',
    params: data
  })
}

// 修改记录
export function recordN(data) {
  return request({
    url: '/trade/customer/customer/modify/list',
    method: 'get',
    params: data
  })
}
// 地区
export function getcity(data) {
  return request({
    url: `/region/list/${data}`,
    method: 'get',
  })
}
export function getDistrict(data) {
  return request({
    url: `/region/district`,
    method: 'get',
    params: data
  })
}
export function cityName(data) {
  return request({
    url: `/region/city`,
    method: 'get',
    params: data
  })
}
export function pidGet(data) {
  return request({
    url: '/trade/customer/customer/company/list',
    method: 'get',
    params: data
  })
}